package com.beten.ui.main;

import android.widget.ListView;

import com.beten.demo.MainActivity;
import com.beten.demo.R;

public class TrendView extends BaseView {

	ListView trend_list;
	NewsListAdapter adapter;
	public TrendView(MainActivity activity) {
		super(activity);

		
	}

	@Override
	protected void OnViewInit() {
		adapter=new NewsListAdapter(mContext);
		
		trend_list=(ListView)mContext.findViewById(R.id.trend_list);
		NewsItemInfo info=new NewsItemInfo();
		info.type=NewsItemInfo.news_top_img;
		adapter.mData.add(info);
		
		for(int i=1;i<30;i++)
		{
			NewsItemInfo newInfo=new NewsItemInfo();
			adapter.mData.add(newInfo);
		}
		trend_list.setAdapter(adapter);
	}

}
